package com.bchun.gamepk.service.impl;

import com.bchun.gamepk.model.UsersInfo;
import com.bchun.gamepk.dao.IBaseDao;
import com.bchun.gamepk.dao.IUsersInfoDao;
import com.bchun.gamepk.service.IUsersInfoService;
import com.bchun.gamepk.service.impl.BaseServiceImpl;

/**
 *<pre>
 * Created by Luoxudong at 2014-02-27 00:16:55
 *
 * 天天捞金
 *
 * GamePK. Copyright (C): 2014
 *
 * Description:
 *
 * Revision History
 * Date              Author        Description
 * 2014-02-27        Luoxudong     初始化设计
 *
 *</pre>
 */
public class UsersInfoServiceImpl extends BaseServiceImpl<UsersInfo> implements IUsersInfoService {

    private IUsersInfoDao mIUsersInfoDao;

    public UsersInfoServiceImpl(IUsersInfoDao usersInfoDao){
        mIUsersInfoDao = usersInfoDao;
    }

    @Override
    protected IBaseDao<UsersInfo> dao() {
        return mIUsersInfoDao;
    }
    
    @Override
    public UsersInfo getByLoginName(String loginName) {
    	return mIUsersInfoDao.getByLoginName(loginName);
    }
    
    @Override
    public UsersInfo getByLoginNameAndPwd(String loginName, String password) {
    	// TODO Auto-generated method stub
    	return mIUsersInfoDao.getByLoginNameAndPwd(loginName, password);
    }
    
}